package com.qf.person.view;

import com.qf.person.dao.PersonDao;
import com.qf.person.dao.impl.PersonDaoImpl;
import com.qf.person.entity.Person;
import com.qf.person.utils.DateUtils;

import java.util.List;

/**
 * @author wangyu
 * @Classname: TestPerson
 * @Description: TEST
 * @date 2022-04-07 16:38
 */
public class TestPerson {
    public static void main(String[] args) {
        PersonDao personDao = new PersonDaoImpl();
//        增加
//        Person person = new Person("wangwu",19, DateUtils.strToUtil("1998-09-09"),"wangwu@qq.com","上海市");
//        int result = personDao.insert(person);
//        System.out.println(result);

        //查询单个
//        Person person = personDao.select(11);
//        System.out.println(person);
        //查询全部
        System.out.println(personDao.selectAll());
    }
}
